package cn.com.qtgl.apis.iam.model.input;

import cn.com.qtgl.apis.iam.model.vo.User;
import cn.melonlib.cores.commons.model.entity.ApiEntity;
import cn.melonlib.cores.commons.model.entity.StringIdEntity;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@Data
@EqualsAndHashCode(callSuper = true)
@ModelComment("用户输入")
public class UserInput extends StringIdEntity implements ApiEntity {

    public UserInput() {
    }

    public UserInput(User user){
        BeanUtils.copyProperties(user,this);
    }

    private String name;

    private String account;

    private String username;

    private String cardType;

    private String cardNo;

    private String openid;

    private String email;

    private String phone;

    private String sex;

    private String tags;

    private Boolean active;

}
